Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wixc3/patterns

Package Overview
Dependencies
Maintainers
66
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/patterns

A utility for saving objects to be disposed

  • 15.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
427
decreased by-55.33%
Maintainers
66
Weekly downloads
 
Created
Source

npm version @wixc3/patterns on Github

Home > @wixc3/patterns

patterns package

Useful data structures such as LRU-Cache, set-multi-map, Signal, EventEmitter, Disposable, Debouncer

Classes

ClassDescription
DebouncerCancelable debouncing of calls to trigger
EventEmitterA simple event emitter
LRUCacheBASIC (not optimal) implementation of the LRU cache
SetMultiMapMaps keys to a set of values
SignalSignal is a simple event emitter for one type of event.

Functions

FunctionDescription
createDisposables()Disposables allow adding of disposal async functions, when dispose is called, these functions will be run sequentially
isSetMultiMap(x)

Interfaces

InterfaceDescription
LRUCacheConfig

Type Aliases

Type AliasDescription
Disposable
Disposables
DisposeFunction
IEventEmitter
Listener

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc